package com.example.backend.mapper;

import com.example.backend.model.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OrderItemMapper {
    void dropTable();
    void createTable();

    List<OrderItem> findMatch(Integer orderid);
    OrderItem findOne(Integer id);
    int insertOne(OrderItem item);
    int insertAll(List<OrderItem> items);
    int deleteOne(Integer id);
    int deleteAll(List<Integer> ids);
    int updateOne(OrderItem item);
}
